/**
 * 
 */
package org.dragonfire.dasm.instr.rules;

import org.dragonfire.dasm.CompileException;
import org.dragonfire.dasm.instr.Rule;
import org.dragonfire.dasm.postprocessor.Postprocessor;

/**
 * @author Darth Android
 * @date Jul 17, 2007
 */
public class Z80IMRule extends Rule {

	/*
	 * (non-Javadoc)
	 * 
	 * @see org.dragonfire.dasm.instr.Rule#evalParam(java.lang.String)
	 */
	@Override
	public String evalParam(Postprocessor post, String bits) {
		if (bits.equalsIgnoreCase("11"))
			throw new CompileException("ERROR_INVALID_VALUE", 3, "1st");
		return bits;
	}
}
